/**
 * Copyright (C), 2020-2021 by colley.ma
 * File Name: SwakJob.java
 * Encoding: UTF-8
 * Date: 2021年4月21日 下午2:20:39
 * History:
 */
package com.swak.frame.job.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;

@Documented
@Target({java.lang.annotation.ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface SwakJob {

    String cron() default "";

    long fixedRate() default -1;

    TimeUnit unit() default TimeUnit.SECONDS;
}
